package org.jaaksi.view.pop;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ProgressBar;

public class MyActivity extends Activity {
    protected LoadingBar mLoadingBar;
    private LoadingTip mLoadingTip;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
//        mLoadingBar = new LoadingBar(this);
//        mLoadingBar.show();
        mLoadingTip = new LoadingTip(this);
        mLoadingTip.setContentView(new ProgressBar(this));
        mLoadingTip.show();
    }

    @Override
    protected void onDestroy() {
//        mLoadingBar.onDestroy();
        mLoadingTip.dismiss();
        super.onDestroy();
    }

    public void onClick(View v) {
//        mLoadingBar.show();
        mLoadingTip.show();

    }

    public void onClose(View view) {
//        mLoadingBar.cancel();
        mLoadingTip.dismiss();
    }
}
